import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Favorite } from './entities/favorite.entity';
import { FavoriteService } from './favorite.service';
import { FavoriteController } from './favorite.controller';
import { Topic } from '../topic/entities/topic.entity'; // 引入 Topic 实体

@Module({
  imports: [TypeOrmModule.forFeature([Favorite, Topic])], // 引入 Favorite 实体
  controllers: [FavoriteController],
  providers: [FavoriteService],
})
export class FavoriteModule {}
